<?php
/**
 * Created by PhpStorm.
 * User: hoter.zhang
 * Date: 2018/1/2
 * Time: 16:46
 */

namespace app\services;


use yii\helpers\Url;

class UrlService{

    public static function buildUrl($uri, $params=[]) {
        return Url::toRoute(array_merge( [$uri], $params));
    }

    public static function buildNullUrl(){
        return "javascript:void(0);";
    }
}